package com.eastfair.questionnaire.vo;

import cn.afterturn.easypoi.excel.annotation.Excel;

import com.baomidou.mybatisplus.annotation.TableName;
import com.eastfair.annotation.model.EchoVO;
import com.eastfair.core.base.entity.Entity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.Accessors;

import javax.validation.constraints.Size;
import java.time.LocalDateTime;
import java.util.HashMap;
import java.util.Map;

import static com.baomidou.mybatisplus.annotation.SqlCondition.LIKE;

/**
 * <p>
 * 实体类
 * 问卷外部系统映射关系
 * </p>
 *
 * @author yuwx
 * @since 2021-08-18
 */
@Data
@NoArgsConstructor
@ToString(callSuper = true)
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@ApiModel(value = "QuestionnaireRelationVO", description = "问卷外部系统映射关系")
@AllArgsConstructor
public class QuestionnaireRelationVO extends Entity<Long> implements EchoVO {

    private static final long serialVersionUID = 1L;

    private Map<String, Object> echoMap = new HashMap<>();
    /**
     * 项目ID
     */
    @ApiModelProperty(value = "项目ID")

    @Excel(name = "项目ID")
    private Long projectId;

    /**
     * 映射类型
     */
    @ApiModelProperty(value = "映射类型")

    @Excel(name = "映射类型")
    private Long relationType;

    /**
     * 本系统id
     */
    @ApiModelProperty(value = "本系统id")

    @Excel(name = "本系统id")
    private Long selfId;

    /**
     * 外部系统id
     */
    @ApiModelProperty(value = "外部系统id")
    @Size(max = 32, message = "外部系统id长度不能超过32")

    @Excel(name = "外部系统id")
    private String externalId;

    /**
     * 外部系统类型
     */
    @ApiModelProperty(value = "外部系统类型")
    @Size(max = 32, message = "外部系统类型长度不能超过32")

    @Excel(name = "外部系统类型")
    private String externalSourceSystem;

    /**
     * 是否生效(默认1：可用 0:不可用)
     */
    @ApiModelProperty(value = "是否生效(默认1：可用 0:不可用)")

    @Excel(name = "是否生效(默认1：可用 0:不可用)", replace = {"是_true", "否_false", "_null"})
    private Integer isEnabled;

    /**
     * 是否删除(默认0：未删除 1:已删除)
     */
    @ApiModelProperty(value = "是否删除(默认0：未删除 1:已删除)")

    @Excel(name = "是否删除(默认0：未删除 1:已删除)", replace = {"是_true", "否_false", "_null"})
    private Integer isDeleted;




}
